package com.etc.util;

public class FileUtil {

    public static String[] IMAGR_FILE_CONTENT_TYPE=new String[]{"image/jpeg","image/png","image/gif"};

    /**
     * 校验IMAGE_FILE_CONTENT_TYPE
     * @param filecontentType
     * @return
     */
    public static boolean isImageFileAllowed(String filecontentType){
        for (String type:IMAGR_FILE_CONTENT_TYPE){
            if(type.equals(filecontentType)){
                return true;
            }
        }
        return false;
    }

}
